//$Id: BuildingRequirement.java 22 2010-10-20 18:15:56Z edwardchuajh $

package builders;

/**
 * this is used to communicate to Logic the requirements the player has to meet in order to buy a specific building
 * 
 * @author Vincent
 */
public class BuildingRequirement {

	private Player.Resource resource;
	private int amount;
	
	/**
	 * This is the constructor for the BuildingRequirement class.
	 * 
	 * @param resource			specify the resource required to build the building
	 * @param resourceAmount	specify the amount of resource required to build the building
	 */
	public BuildingRequirement(Player.Resource resource, int resourceAmount) {
		this.resource = resource;
		this.amount = resourceAmount;
	}
	
	/**
	 * @return	the resource required to build the building
	 */
	public Player.Resource getResources(){
		return resource;
	}
	
	/**
	 * @return	the amount of resource required to build the building
	 */
	public int getAmount(){
		return amount;
	}
}
